package com.ruoyi.business.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务分配用户对象 bus_task_user
 * 
 * @author Eric
 * @date 2024-03-17
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("bus_task_user")
public class TaskUser extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /**
     * 调研状态(0-进行中、1-已提交、2-已完成)
     * @see com.ruoyi.business.enums.UserSurveyStatus
     */
    private Integer surveyStatus;

    /** 删除标志（0代表存在 1代表删除） */
    @TableLogic
    private String delFlag;

    public TaskUser(){

    }
    public TaskUser(Long userId, Long taskId){
        this.userId = userId;
        this.taskId = taskId;
    }
}
